// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'ProductExpenseRecordId',
        footer: "Foots",
        cnName: '生产费用记录',
        name: 'ProductExpenseRecord',
        newTabEdit: false,
        url: "/ProductExpenseRecord/",
        sortName: "ProductExpenseRecordId"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"PeriodYear":"","PeriodMonth":"","BillDate":"","IsKingdee":""};
    const editFormOptions = [[{"dataKey":"是否","data":[],"title":"是否金蝶导入数据","field":"IsKingdee","disabled":true,"type":"select"},
                               {"dataKey":"会计年度","data":[],"title":"会计年度","required":true,"field":"PeriodYear","type":"select"},
                               {"dataKey":"会计期间月份","data":[],"title":"会计期间","required":true,"field":"PeriodMonth","type":"select"},
                               {"title":"日期","required":true,"field":"BillDate","type":"date"}]];
    const searchFormFields = {};
    const searchFormOptions = [];
    const columns = [{field:'ProductExpenseRecordId',title:'成本费用记录标识',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'PeriodYear',title:'会计年度',type:'int',bind:{ key:'会计年度',data:[]},width:110,require:true,align:'left'},
                       {field:'PeriodMonth',title:'会计期间',type:'int',bind:{ key:'会计期间月份',data:[]},width:110,require:true,align:'left'},
                       {field:'BillDate',title:'日期',type:'datetime',width:110,require:true,align:'left'},
                       {field:'IsKingdee',title:'是否金蝶导入数据',type:'int',bind:{ key:'是否',data:[]},width:80,readonly:true,align:'left'},
                       {field:'CreateID',title:'创建人标识',type:'int',width:80,hidden:true,align:'left'},
                       {field:'Creator',title:'创建人名称',type:'string',width:100,align:'left'},
                       {field:'CreateDate',title:'创建日期',type:'datetime',width:110,align:'left'},
                       {field:'ModifyID',title:'修改人标识',type:'int',width:80,hidden:true,align:'left'},
                       {field:'Modifier',title:'修改人名称',type:'string',width:100,align:'left'},
                       {field:'ModifyDate',title:'修改日期',type:'datetime',width:110,align:'left'},
                       {field:'AuditDate',title:'审核日期',type:'datetime',width:110,align:'left'},
                       {field:'AuditStatus',title:'审核状态',type:'int',bind:{ key:'audit',data:[]},width:110,align:'left'},
                       {field:'AuditId',title:'审核人标识',type:'int',width:110,hidden:true,align:'left'},
                       {field:'Auditor',title:'审核人',type:'string',width:120,align:'left'}];
    const detail =  {
                    cnName: '生产费用明细',
                    table: 'ProductExpenseRecordDetail',
                    columns: [{field:'ProductExpenseRecordDetailId',title:'成本费用明细标识',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'ProductExpenseRecordId',title:'成本费用记录标识',type:'int',width:110,hidden:true,require:true,align:'left'},
                       {field:'DepartmentId',title:'部门',type:'guid',bind:{ key:'部门级联',data:[]},width:110,edit:{type:'cascader'},require:true,align:'left'},
                       {field:'ExpenseItemId',title:'费用项目',type:'int',bind:{ key:'费用项目',data:[]},width:110,edit:{type:'select'},require:true,align:'left'},
                       {field:'ExpenseAmount',title:'费用金额',type:'decimal',width:110,edit:{type:'decimal'},require:true,align:'left'}],
                    sortName: 'ProductExpenseRecordDetailId',
                    key: 'ProductExpenseRecordDetailId'
                                            };
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}